<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:util="http://java.sun.com/jsf/composite/util">
	<ui:composition template="/views/layouts/mainPublic.xhtml">
	<ui:define name="content">
		<h:form id="formPrincipal">
			<div class="grid_18">
				<util:home action="#{solicitacaoCadastroBean.goHome}"/>
				<p:commandButton icon="ui-icon ui-icon-disk" value="Salvar"
					action="#{solicitacaoCadastroBean.salvar}" ajax="false"/>
				<p:commandButton icon="ui-icon ui-icon-cancel" value="Cancelar" 
					action="#{solicitacaoCadastroBean.goHome}" ajax="false" immediate="true"/>
				<h:outputText value="#{i18n.SolicitacaoCadastro_CriacaoUsuario}"/>
				<h:outputText rendered="#{solicitacaoCadastroBean.flagNovoCliente}" 
					value=" #{i18n.SolicitacaoCadastro_CriacaoClientePortal}"/>
				<p:commandButton icon="ui-icon ui-icon-help" style="float:right" type="button" onclick="alert('teste')"/>
			</div>
			
			<div class="grid_18">
				<p:messages id="messages" />
			</div>
			
			<div class="grid_18">
				<p:tabView style="height:400px;background: transparent;" activeIndex="#{solicitacaoCadastroBean.activeIndex}">
					<p:tab id="tabClientePortal" title="#{i18n.SolicitacaoCadastro_ClientePortal}">
						<ui:include src="/views/solicitacaoCadastro/_abaClientePortal.xhtml" />
					</p:tab>
					<p:tab id="tabUsuario" title="#{i18n.SolicitacaoCadastro_Usuario}">
						<ui:include src="/views/solicitacaoCadastro/_abaUsuario.xhtml" />
					</p:tab>			
				</p:tabView>
			</div>			
		</h:form>
		<ui:include src="/views/solicitacaoCadastro/_dialogoBuscaClientePortal.xhtml" />
		
	</ui:define>
	</ui:composition>
</f:view>